package com.itchu.system.domain;


import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;

@Data
@Table(name = "category")
public class Category {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;

    private String name;

    private Long parentId;

    private Integer isParent;

    private Date createTime;

    private Date updateTime;

    private List<Category> child;
}
